<include file="public@header" />
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('personnel/add')}">员工信息</a></li>
        <li><a href="{:url('personnel/adds')}">员工添加</a></li>
        <li class="active"><a>编辑管理员</a></li>
    </ul>
    <foreach name="user" item="co">


    <form class="form-horizontal" role="form" action="{:url('personnel/editPost',array('id'=>$co['id']))}" method="post" enctype="multipart/form-data">
        <!--<div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">部门</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="firstname"
                       placeholder="请输入部门" name="depart" value="{$co.depart}">
            </div>
        </div>
        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">职务</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="lastname"
                       placeholder="请输入职务" name="duty" value="{$co.duty}">
            </div>
        </div>-->

        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">部门</label>
            <div class="col-sm-10">
                <select class="form-control" name="depart" id="firstname">
                    <foreach name="job" item="dd">
                        <option value="{$dd.depart}">{$dd.depart}</option>
                    </foreach>
                </select>

            </div>
        </div>
        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">职务</label>
            <div class="col-sm-10">
                <select class="form-control" name="duty" id="lastname">
                    <foreach name="job1" item="dd">
                        <option value="{$dd.duty}">{$dd.duty}</option>
                    </foreach>
                </select>
                <!--<input type="text" class="form-control" id="lastname"
                       placeholder="请输入职务" name="duty">-->
            </div>
        </div>


        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入姓名" name="user_login" value="{$co.user_login}">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">工号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入工号" name="job_num" id="job_num" readonly value="{$co.job_num}">
            </div>
        </div>



        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">登录邮箱</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入登录邮箱" name="user_email" value="{$co.user_email}">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">性别</label>
            <div class="col-sm-10">
                <select class="form-control" name="sex">
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">身份证号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入身份证号" name="idnumber" value="{$co.idnumber}">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">生日</label>
            <div class="col-sm-10">
                <input type="text" class="form-control js-bootstrap-datetime"
                       placeholder="请输入生日" name="birthday" value="{$co.birthday|date='Y-m-d H:i',###}">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">登录密码</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="******" name="user_pass" value="">
            </div>
        </div>



        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">手机号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入手机号" name="mobile" value="{$co.mobile}">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">地址</label>
            <div class="col-sm-10">
                <input type="text" class="form-control"
                       placeholder="请输入地址" name="address" value="{$co.address}">
            </div>
        </div>

        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">店铺名称</label>
            <div class="col-sm-10">
                <select class="form-control" name="storeid" >

                        <option >{$co.storeid}</option>
                </select>
            </div>
        </div>


        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <div class="checkbox">
                    角色：
                    <foreach name="name" item="vo">
                       <!-- <label>

                            <input type="checkbox" name="check[]" value="{$vo.id}" style="margin-right: 100px"> {$vo.name}
                        </label>-->

                        <label class="checkbox-inline">
                            <php>$role_id_checked=in_array($vo['id'],$role_ids)?"checked":"";</php>
                            <input value="{$vo.id}" type="checkbox" name="check[]" {$role_id_checked} <if condition="cmf_get_current_admin_id() neq 1 && $vo['id'] eq 1">disabled="true"</if>>{$vo.name}
                        </label>

                    </foreach>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">提交</button>
                <input type="button" name="Submit" onclick="javascript :history.back(-1);" value="返回" class="btn btn-default">
            </div>
        </div>



    </form>

    </foreach>


</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>